/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.cip.esymons.eventos.be;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author oscar
 */
@Entity
@Table(name = "eca_envio_tramite")
@NamedQueries({@NamedQuery(name = "EnvioTramite.findAll", query = "SELECT e FROM EnvioTramite e"), @NamedQuery(name = "EnvioTramite.findByEntCodigo", query = "SELECT e FROM EnvioTramite e WHERE e.entCodigo = :entCodigo"), @NamedQuery(name = "EnvioTramite.findByEntnombreCargo", query = "SELECT e FROM EnvioTramite e WHERE e.entnombreCargo = :entnombreCargo"), @NamedQuery(name = "EnvioTramite.findByEntTipo", query = "SELECT e FROM EnvioTramite e WHERE e.entTipo = :entTipo"), @NamedQuery(name = "EnvioTramite.findByEntCorreo", query = "SELECT e FROM EnvioTramite e WHERE e.entCorreo = :entCorreo")})
public class EnvioTramite implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "ent_codigo")
    private Integer entCodigo;
    @Basic(optional = false)
    @Column(name = "ent_nombreCargo")
    private String entnombreCargo;
    @Basic(optional = false)
    @Column(name = "ent_tipo")
    private String entTipo;
    @Basic(optional = false)
    @Column(name = "ent_correo")
    private String entCorreo;
    @Column(name = "ent_nombrePersona")
    private String entNombrePersona;


    public EnvioTramite() {
    }

    public EnvioTramite(Integer entCodigo) {
        this.entCodigo = entCodigo;
    }

    public EnvioTramite(Integer entCodigo, String entnombreCargo, String entTipo, String entCorreo) {
        this.entCodigo = entCodigo;
        this.entnombreCargo = entnombreCargo;
        this.entTipo = entTipo;
        this.entCorreo = entCorreo;
    }

    public String getEntNombrePersona() {
        return entNombrePersona;
    }

    public void setEntNombrePersona(String entNombrePersona) {
        this.entNombrePersona = entNombrePersona;
    }

    public Integer getEntCodigo() {
        return entCodigo;
    }

    public void setEntCodigo(Integer entCodigo) {
        this.entCodigo = entCodigo;
    }

    public String getEntnombreCargo() {
        return entnombreCargo;
    }

    public void setEntnombreCargo(String entnombreCargo) {
        this.entnombreCargo = entnombreCargo;
    }

    public String getEntTipo() {
        return entTipo;
    }

    public void setEntTipo(String entTipo) {
        this.entTipo = entTipo;
    }

    public String getEntCorreo() {
        return entCorreo;
    }

    public void setEntCorreo(String entCorreo) {
        this.entCorreo = entCorreo;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (entCodigo != null ? entCodigo.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof EnvioTramite)) {
            return false;
        }
        EnvioTramite other = (EnvioTramite) object;
        if ((this.entCodigo == null && other.entCodigo != null) || (this.entCodigo != null && !this.entCodigo.equals(other.entCodigo))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "org.cip.esymons.eventos.be.EnvioTramite[entCodigo=" + entCodigo + "]";
    }

}
